package com.aid.winter.dto.response;

import lombok.Data;
import java.util.List;

@Data
public class PageResult<T> {
    private List<T> records;
    private long total;
    private long size;
    private long current;
    
    public static <T> PageResult<T> build(List<T> records, long total, long size, long current) {
        PageResult<T> pageResult = new PageResult<>();
        pageResult.setRecords(records);
        pageResult.setTotal(total);
        pageResult.setSize(size);
        pageResult.setCurrent(current);
        return pageResult;
    }
} 